/**
 * 
 */
package com.zte.claa.inficombo.csa.app.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author 0283000115
 * 
	csa.fengyusvr.comm.svrip=fengyupower.cn
	csa.fengyusvr.comm.port=12344
	csa.fengyusvr.comm.bufsize=1024
	csa.fengyusvr.comm.cmdsendtimeoutsecond=5
	csa.fengyusvr.comm.cmdtimeoutsecond=7
	csa.fengyusvr.comm.connwaitsecond=6
	csa.fengyusvr.comm.sessionidlesecond=120
	csa.fengyusvr.comm.charsetname=UTF-8
	csa.fengyusvr.comm.devtype=fengyu_efire
 *
 */

@Component  
@ConfigurationProperties(prefix="csa.fengyusvr.comm") 
public class FengYuSvrCommProps {
	private String svrip = "127.0.0.1";
	private int port = 12344;	
	private int bufsize = 1024;
	private int cmdsendtimeoutsecond=5;
	private int connwaitsecond = 7;
	private int cmdtimeoutsecond = 10;
	private int sessionidlesecond = 120;
	private String charsetname = "UTF-8";
	private String devtype = "fengyu_efire";	

	public String getSvrip() {
		return svrip;
	}

	public void setSvrip(String svrip) {
		this.svrip = svrip;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public int getBufsize() {
		return bufsize;
	}

	public void setBufsize(int bufsize) {
		this.bufsize = bufsize;
	}

	public int getCmdsendtimeoutsecond() {
		return cmdsendtimeoutsecond;
	}

	public void setCmdsendtimeoutsecond(int cmdsendtimeoutsecond) {
		this.cmdsendtimeoutsecond = cmdsendtimeoutsecond;
	}

	public int getConnwaitsecond() {
		return connwaitsecond;
	}

	public void setConnwaitsecond(int connwaitsecond) {
		this.connwaitsecond = connwaitsecond;
	}

	public int getCmdtimeoutsecond() {
		return cmdtimeoutsecond;
	}

	public void setCmdtimeoutsecond(int cmdtimeoutsecond) {
		this.cmdtimeoutsecond = cmdtimeoutsecond;
	}

	public int getSessionidlesecond() {
		return sessionidlesecond;
	}

	public void setSessionidlesecond(int sessionidlesecond) {
		this.sessionidlesecond = sessionidlesecond;
	}

	public String getCharsetname() {
		return charsetname;
	}

	public void setCharsetname(String charsetname) {
		this.charsetname = charsetname;
	}

	public String getDevtype() {
		return devtype;
	}

	public void setDevtype(String devtype) {
		this.devtype = devtype;
	}

	public FengYuSvrCommProps clone(){
		FengYuSvrCommProps p = new FengYuSvrCommProps();
		p.setSvrip(this.svrip);
		p.setPort(this.port);
		p.setBufsize(bufsize);
		p.setCmdsendtimeoutsecond(cmdsendtimeoutsecond);
		p.setConnwaitsecond(connwaitsecond);
		p.setCmdsendtimeoutsecond(cmdsendtimeoutsecond);
		p.setSessionidlesecond(sessionidlesecond);
		p.setCharsetname(charsetname);
		p.setDevtype(devtype);
		return p;
	}
}
